package com.navi.mould1.exception;

/**
 * @auther Matthew
 * @Date 2018/3/24
 */
public class CoordTransformException extends RuntimeException {

  private String errorCode;

  public CoordTransformException(String errorCode) {
    this.errorCode = errorCode;
  }

  public CoordTransformException(String message, String errorCode) {
    super(message);
    this.errorCode = errorCode;
  }

  public CoordTransformException(String message, Throwable cause, String errorCode) {
    super(message, cause);
    this.errorCode = errorCode;
  }

  public CoordTransformException(Throwable cause, String errorCode) {
    super(cause);
    this.errorCode = errorCode;
  }

  public CoordTransformException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace,
      String errorCode) {
    super(message, cause, enableSuppression, writableStackTrace);
    this.errorCode = errorCode;
  }

  public String getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(String errorCode) {
    this.errorCode = errorCode;
  }
}
